|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| PrayerRequestManager.java | - | - | - | - |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Created on Jul 28, 2004
|
|
| 3 |
*/
|
|
| 4 |
package org.marketchangers.prayer;
|
|
| 5 |
|
|
| 6 |
import java.util.List;
|
|
| 7 |
|
|
| 8 |
/**
|
|
| 9 |
* @author jniu
|
|
| 10 |
* @author jwilliams
|
|
| 11 |
* @author <a href="mailto:ypak@wc-group.com">Yong Pak</a>
|
|
| 12 |
* @author <a href="mailto:mtodd@wc-group.com">Matthew Todd</a>
|
|
| 13 |
*/
|
|
| 14 |
public interface PrayerRequestManager { |
|
| 15 |
public boolean submitPrayerRequest(PrayerRequest prayerRequest); |
|
| 16 |
public boolean createPrayerCategory(PrayerCategory category); |
|
| 17 |
public PrayerCategory getPrayerCategory(String category);
|
|
| 18 |
|
|
| 19 |
public List getCategoriesForRequestor(String user);
|
|
| 20 |
public List getCategoriesForIntercessor(String user);
|
|
| 21 |
public List getRequestorsForIntercessor(String user);
|
|
| 22 |
public List getRequestorOrganizationsForIntercessor(String user);
|
|
| 23 |
|
|
| 24 |
public List getCurrentIntercessors(String user);
|
|
| 25 |
public List getCurrentRequestors(String user);
|
|
| 26 |
|
|
| 27 |
public boolean removeContract(UserContract contract); |
|
| 28 |
public boolean addContract(UserContract contract); |
|
| 29 |
public boolean updateContractStatus(UserContract contract); |
|
| 30 |
|
|
| 31 |
public boolean addComment(PrayerComment comment); |
|
| 32 |
public boolean updateStatus(PrayerRequest prayerRequest); |
|
| 33 |
|
|
| 34 |
public PrayerRequest getPrayerRequestById(String user, Integer id);
|
|
| 35 |
public List getCommentsByPrayerId(Integer prayerRequestId);
|
|
| 36 |
|
|
| 37 |
public List getPrayerRequestList(String user, String role);
|
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* Expects that the query has already had organizationName translated to a
|
|
| 41 |
* list of requestors. Filters the entire list based on the relationships
|
|
| 42 |
* the intercessor has.
|
|
| 43 |
*/
|
|
| 44 |
public List search(String intercessorUserId, PrayerRequestQuery query);
|
|
| 45 |
} |
|
| 46 |
|
|
||||||||||